package com.jeesite.modules.isys.config;

import com.jeesite.modules.isys.xmqtt.client.XMqttCallback;
import com.jeesite.modules.isys.xmqtt.client.XmqttClient;
import com.jeesite.modules.isys.xmqtt.config.XMqttConfig;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;


@Configuration

public class XmqttConfig {
    @Bean
    public XmqttClient xmqttClient(XMqttConfig xmqttConfig, XMqttCallback xMqttCallback){
        return  new XmqttClient(xmqttConfig,xMqttCallback);
    }
}
